using System.Collections;
using Mistral.Interface.Features;

namespace Mistral.Plugin.ApplicationWindow
{
	class PluginManagerView : ITreeNodeDescriptor
	{
		readonly IPluginManager _pluginManager;

		public PluginManagerView( IPluginManager pluginManager )
		{
			_pluginManager = pluginManager;
		}

		#region ITreeNodeDescriptor Members

		public string Name
		{
			get { return "plugins"; }
		}

		public object Tag
		{
			get { return null; }
		}

		public IEnumerable Children
		{
			get { return _pluginManager; }
		}

		#endregion
	}
}